if __name__ == '__main__':
    s = input()
    s = s.split(" ")
    ans = [st for st in s if st != '']
    new_string = " ".join(ans)
    print(new_string)
